﻿@model  IEnumerable<Urna_Virtual__Galicia.Models.Candidato>

@{
    ViewBag.Title = "Administrador";
  
}
<html>
<head>
    <title>Detalles de todos los "Candidatos" xD</title>
</head>
<body>
   
        @Html.ActionLink("Agregar candidatos", "Index", "Candidato")
           
            @Html.ActionLink("Agregar personas", "Index", "Padron")
            


    <table style="background-color:rgba(255, 255, 255, 0.78)" class="pure-table" cellpadding="80">
        <tr class="table table-bordered" style="text-align:center">
          
          <th>
            ID
            </th>

            <th>
                @Html.DisplayNameFor(model => model.nombre)
            </th>
          
            <th>
              @Html.DisplayNameFor(model => model.apellido)
            </th>
        
            <th>
                @Html.DisplayNameFor(model => model.url)
            </th>



        </tr>

        @foreach (var item in Model)
        {
            <tr class="table table-bordered">
                <td style="text-align:center">
                        @Html.DisplayFor(modelItem => item.id)
                </td>
                <td>
                    
                        @Html.DisplayFor(modelItem => item.nombre)
                </td>
                <td>
                        @Html.DisplayFor(modelItem => item.apellido)
                </td>
                <td>
                    <img src="@Html.DisplayFor(modelItem => item.url)" height=" 250" width="250"/>
                </td>

            </tr>
           
        }
    </table>
    </body>
</html>